package com.yugao.fintech.vctgone.admin.converter;

import com.yugao.fintech.vctgone.admin.pojo.dto.RegisteredClientDTO;
import com.yugao.fintech.vctgone.admin.pojo.po.SysRegisteredClient;
import com.yugao.fintech.vctgone.admin.pojo.vo.RegisteredClientVO;
import com.yugao.fintech.vctgone.mybatisplus.util.PageUtil;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface RegisteredClientConverter {
    /**
     * PiPage<SysRegisteredClient> -> PiPage<RegisteredClientVO>
     *
     * @param pageClients PiPage<SysRegisteredClient>
     * @return PiPage<RegisteredClientVO>
     */
    PageUtil<RegisteredClientVO> pageSysClientToPageClientVo(PageUtil<SysRegisteredClient> pageClients);

    /**
     * RegisteredClientDTO -> SysRegisteredClient
     * @param dto RegisteredClientDTO
     * @return SysRegisteredClient
     */
    SysRegisteredClient clientDtoToSysClient(RegisteredClientDTO dto);
}
